package com.blb.io;

/**
 * 战斗盔甲
 */
public class FightAmor implements Fight{

    //被装饰者对象
    private Fight fight = null;

    //传入被装饰者对象
    public FightAmor(Fight fight) {
        this.fight = fight;
    }

    @Override
    public void attack() {
        //调用被装饰者方法
        this.fight.attack();
        //扩展
        System.out.println("钢铁侠发射激光把你轰成渣渣！");
    }

    @Override
    public void move() {
        this.fight.move();
        System.out.println("钢铁侠开始飞行~~~~~~~~~~~~");
    }
}
